﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Userpanel.aspx.cs" Inherits="WebshopPizzaRio.Userpanel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style1
    {
        width: 100%;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    &nbsp;<table class="style1">
        <tr>
            <td align="left">
                Welkom
                <asp:LoginName ID="LoginName2" runat="server" />
            </td>
            <td align="right">
                <asp:HyperLink ID="HyperLink1" runat="server" 
                    NavigateUrl="~/Userpanel-gegevens.aspx">Account bekijken</asp:HyperLink>
            </td>
        </tr>
    </table>
    <asp:LoginView runat = "server" ID="LoginView1">
    <RoleGroups>

            <asp:RoleGroup Roles="Administrators">
                <ContentTemplate>
                
    &nbsp;&nbsp;<asp:Panel ID="Panel4" runat="server" Width="465px">
        <a href="klanten-beheren.aspx">Klantenbeheer</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailing.aspx">Nieuwsbrief</a></asp:Panel>

    <asp:Panel ID="Panel1" runat="server">
        <a href="klanten-beheren.aspx"><img src="Images/klantenbeheer.png" alt="Klantenbeheer plaatje is niet beschikbaar"/></a>  
        &nbsp;&nbsp;&nbsp;
        <a href="mailing.aspx"><img src="Images/nieuwsbrief.png" alt="Nieuwsbrief plaatje is niet beschikbaar"/></a>  
    </asp:Panel>
    </ContentTemplate>
    </asp:RoleGroup>
    </RoleGroups>
    </asp:LoginView>
    <br />
    <br />
    Uw zelf samengestelde pizza's:
    <asp:ListView ID="samengesteldepizza_LV" runat="server" 
        DataKeyNames = "pizzaid">

    <LayoutTemplate>
        <ul class = "winkelwagenoverzicht3">
            <asp:PlaceHolder ID = "itemPlaceholder" runat= "server" />
        </ul>
    </LayoutTemplate>

    <ItemTemplate>
        <li>
            <div class = "winkelwagenoverzicht3"> 
            Klik hier om samengestelde pizza: <a href = "Pizzadetails.aspx?id=<%#Eval("pizzaid")%>"><%#Eval("naam") %></a>  te bekijken
            </div>
        </li>
    </ItemTemplate>

    <EmptyDataTemplate>
        <div>
            U heeft nog geen eigen samengestelde pizza gemaakt.
        </div>
    </EmptyDataTemplate>
    </asp:ListView>


    <br />
        <%#Eval("Voornaam") %>
</asp:Content>
